(function (root, factory) {
    if (typeof define === 'function' && define.amd) {
        // AMD. Register as an anonymous module.
        define(['exports', 'echarts'], factory);
    } else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {
        // CommonJS
        factory(exports, require('echarts'));
    } else {
        // Browser globals
        factory({}, root.echarts);
    }
}(this, function (exports, echarts) {
    var log = function (msg) {
        if (typeof console !== 'undefined') {
            console && console.error && console.error(msg);
        }
    };
    if (!echarts) {
        log('ECharts is not Loaded');
        return;
    }
    echarts.registerTheme('themeBlue', {
        "color": [
            "#58b6ec"
        ],
        "line": {
            "areaStyle":{
                "color": {
                    "type": 'linear',
                    "x": 0,
                    "y": 0,
                    "x2": 0,
                    "y2": 1,
                    "colorStops": [

                         {"offset":0, "color": "rgba(71,141,228,0.5)"},
                         {"offset":0.25, "color": "rgba(71,141,228,0.25)"},
                         {"offset":0.75, "color": "rgba(255,255,255,0.35)"},
                         {"offset":1, "color": "rgba(255,255,255,0)"}
                    ]
                }
            }
        }
    });

    echarts.registerTheme('themeRed', {
        "color": [
            "#ff6f76"
        ],
        "line": {
            "areaStyle":{
                "color": {
                    "type": 'linear',
                    "x": 0,
                    "y": 0,
                    "x2": 0,
                    "y2": 1,
                    "colorStops": [
                        {"offset":0, "color": "rgba(255,103,125,0.5)"},
                        {"offset":0.25, "color": "rgba(255,103,125,0.25)"},
                        {"offset":0.75, "color": "rgba(255,255,255,0.35)"},
                        {"offset":1, "color": "rgba(255,255,255,0)"}
                    ]
                }
            }
        }
    });

    echarts.registerTheme('themeGreen', {
        "color": [
            "#00ba65"
        ]
    });

    echarts.registerTheme('themeOrange', {
        "color": [
            "#ffb54b"
        ]
    });

    echarts.registerTheme('themeDate7', {
        "color":["#58b6ec","#58b6ec","#ffb54b","#ff6f76"],
        "bar":{
            "barWidth": "12",
            "barGap": "80%"
        },

        "line": {
            "areaStyle":{
                "color": {
                    "type": 'linear',
                    "x": 0,
                    "y": 0,
                    "x2": 0,
                    "y2": 1,
                    "colorStops": [

                        {"offset":0, "color": "rgba(71,141,228,0.5)"},
                        {"offset":0.25, "color": "rgba(71,141,228,0.25)"},
                        {"offset":0.75, "color": "rgba(255,255,255,0.35)"},
                        {"offset":1, "color": "rgba(255,255,255,0)"}
                    ]
                }
            }
        }
    });


    echarts.registerTheme('themeDate30', {
        "color":["#58b6ec","#58b6ec","#ffb54b","#ff6f76"],
        "bar":{
            "barWidth": "6",
            "barGap": "80%"
        },
        "line": {
            "areaStyle":{
                "color": {
                    "type": 'linear',
                    "x": 0,
                    "y": 0,
                    "x2": 0,
                    "y2": 1,
                    "colorStops": [

                        {"offset":0, "color": "rgba(71,141,228,0.5)"},
                        {"offset":0.25, "color": "rgba(71,141,228,0.25)"},
                        {"offset":0.75, "color": "rgba(255,255,255,0.35)"},
                        {"offset":1, "color": "rgba(255,255,255,0)"}
                    ]
                }
            }
        }
    });



}));
